package com.seckill;

import com.seckill.controller.KillGoodsController;
import com.seckill.dao.KillGoodsDao;
import com.seckill.model.KillGoods;
import com.seckill.service.KillGoodsService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest
public class test {


    @Autowired(required =false)
    KillGoodsService killGoodsDao;

    @Test
    public void all(){
        List<KillGoods> killGoods = killGoodsDao.KillGoodsAll();
        for (KillGoods killGood : killGoods) {
            System.out.println(killGood);
        }
    }

}
